package com.fzebu.fastboot.domain.constant;

/**
 * @author Jack
 * @version 1.0.0
 * @create 2020/1/13 17:58
 */
public enum ResultMsg {

    SUCCESS(0, "接口获取成功"),
    FAIL(-1, "接口获取失败"),
    ENTITY_FAIL(101, "实体校验失败");

    private final String text;

    private final int code;

    ResultMsg(int code, String text) {
        this.code = code;
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public int getCode() {
        return code;
    }
}

